package com.meritit.springcloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.meritit.springcloud.service.ScheduleServiceHi;

@RestController
public class HiController {

	@Autowired
	private ScheduleServiceHi scheduleServiceHi;
	
	@RequestMapping("/hi/{name}")
	public String sayHi(@PathVariable(value="name") String name) {
		return scheduleServiceHi.sayHiFromClientOne(name);
	}
}
